package com.iflytek.service.impl;

import com.iflytek.mapper.DeptMapper;
import com.iflytek.pojo.Dept;
import com.iflytek.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeptServiceImpl implements DeptService {
    // 依赖注入
    @Autowired
    DeptMapper deptMapper;
    // 多对一
    // 根据部门id 获取部门信息和部门成员信息
    @Override
    public Dept getDeptByNo(int deptno) {
        Dept dept = deptMapper.getDeptByNo(deptno);
        return dept;
    }
}
